
<form>
<table width="100%" border="0">
	<tr>
		<td colspan="2"><div class="control-group">
										 <div class="fileupload fileupload-new" data-provides="fileupload" style="margin-top:10px;">
											<div class="fileupload-new thumbnail" style="width: 200px; height: 150px;">
												<?php if(isset($pegawai['foto'])){?>
												<img src="<?php echo 'data:image/png;base64,'.base64_encode($pegawai['foto'])?>" alt="" />
												<?php }else{?>
											   <img src="http://www.placehold.it/200x150/EFEFEF/AAAAAA&amp;text=no+image" alt="" />
											   <?php } ?>
											</div>
											<div class="fileupload-preview fileupload-exists thumbnail" style="max-width: 200px; max-height: 150px; line-height: 20px;"></div>
											<div>
											   <input type="file" name="userfile" class="default" /></span>
											</div>
										 </div>	
									  </div>  </td>
	</tr>
	<tr>
		<td>jgsklg</td>
		
		<td>dfgg</td>
	</tr>
		

</table>
<hr>
<pre>
<?php
foreach($row->result() as $r){
	echo $r->nama;
}
?>
</pre>
</form>

